//
//  MessageDetailsView.m
//  TheRoadAD
//
//  Created by baixue on 16/8/16.
//  Copyright © 2016年 baixue. All rights reserved.
//

#import "MessageDetailsView.h"

@interface MessageDetailsView ()

@property (weak, nonatomic) IBOutlet UILabel *titleLable;
@property (weak, nonatomic) IBOutlet UILabel *contentLable;//消息内容
@end

@implementation MessageDetailsView

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    
    NSString *text = @"消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1消息1";
    NSMutableParagraphStyle * paragraphStyle = [[NSMutableParagraphStyle alloc] init];
    [paragraphStyle setLineSpacing:8];//行间距为8
    UIColor *color = [UIColor lightGrayColor];
    NSAttributedString *string = [[NSAttributedString alloc] initWithString:text attributes:@{NSForegroundColorAttributeName : color, NSParagraphStyleAttributeName: paragraphStyle}];
    _contentLable.attributedText = string;
    _contentLable.isAttributedContent = YES;
    _contentLable.font = [UIFont fontWithName:@"qingyuan" size:12.0f];
    
    
    
}

@end
